﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Classes;
using SubSonic;

namespace AvaliacaoWeb
{
    public partial class Page : System.Web.UI.MasterPage
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            if (Session["Matric"] == null)
            {
                Response.Redirect("Default.aspx");
            }

            lblMatric.Text = Session["Matric"].ToString();
            lblNome.Text = Session["Nome"].ToString();


            if ((DateTime.Now.Hour >= 5) || (DateTime.Now.Hour < 12))
                lblMensgaem.Text = "Bom Dia";

            if ((DateTime.Now.Hour >= 12) || (DateTime.Now.Hour < 18))
                lblMensgaem.Text = "Boa Tarde";

            if ((DateTime.Now.Hour > 17) || (DateTime.Now.Hour < 5))
                lblMensgaem.Text = "Boa Noite";

            lblData.Text = " / Belém - PA, " + DateTime.Today.ToLongDateString();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
    }
}